import { SupplierRequest } from '@/plugins/supplier-request';

// 获取供应商列表
export const querySupplierListService = (data, loadingFn) => SupplierRequest({
  url: '/supplierArrivalTime/getSuppliers',
  type: 'post',
  data,
  loadingFn
});
// 查询
export const queryArrivalTimeListService = (data, loadingFn) => SupplierRequest({
  url: '/supplierArrivalTime/queryArrivalTimeList',
  type: 'post',
  data,
  loadingFn
});

// 导出
export const exportArrivalTimeService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-arrival-time',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});

// 删除
export const deleteArrivalTimeService = (data, loadingFn) => SupplierRequest({
  url: '/supplierArrivalTime/removeArrivalTime',
  type: 'post',
  data,
  loadingFn
});

// 新增
export const addArrivalTimeService = (data, loadingFn) => SupplierRequest({
  url: '/supplierArrivalTime/addArrivalTime',
  type: 'post',
  data,
  loadingFn
});

// 批量新增
export const batchAddArrivalTimeService = (data, loadingFn) => SupplierRequest({
  url: '/supplierArrivalTime/saveBachArrivalTimes',
  type: 'post',
  data,
  loadingFn
});

// 导出模板
export const exportArrivalTimeTempService = (data, loadingFn) => SupplierRequest({
  url: '/supplier/export/export-arrival-template',
  type: 'get',
  data,
  loadingFn,
  isExport: true
});
